#!/usr/bin/env bash
yum clean all

yum update -y

yum install -y epel-release

yum install -y yum-utils

sudo rpm -ivh https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm

sudo yum-config-manager --add-repo=https://nightly.odoo.com/10.0/nightly/rpm/odoo.repo

yum install -y postgresql postgresql-server postgresql-libs
postgresql-setup initdb
systemctl enable postgresql
systemctl start postgresql


yum install -y odoo

systemctl enable odoo

systemctl start odoo

firewall-cmd --zone=public --add-port=8069/tcp --permanent

firewall-cmd --reload
